package com.sun.controller.ums;


import com.sun.common.MsResult;
import com.sun.pojo.UmsResourceCategory;
import com.sun.service.ums.IUmsResourceCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 资源分类表 前端控制器
 * </p>
 *
 * @author 妙妙屋
 * @since 2021-12-17
 */
@RestController
@RequestMapping("/resourceCategory")
public class UmsResourceCategoryController {
    @Autowired
    private IUmsResourceCategoryService resourceCategoryService;
    @GetMapping("/listAll")
    public MsResult listAll(){
        List<UmsResourceCategory> list = resourceCategoryService.list();
        return MsResult.isOkData(list);
    }
}

